package jp.co.showbiz.common.base;

import org.apache.log4j.Logger;

/**
 * クラス概要<br>
 * クラス説明<br>
 * 
 * @author 金元正
 * @version $Revision: 1.1 $
 */
public class BaseException extends Exception {

		private static final long serialVersionUID = 1L;

		protected Logger logger = Logger.getLogger(getClass().getName());

		private String key;
		private Object values[] = null;
		
		
		public BaseException(String key, Object values[]) {
			
			super();
			this.key = key;
			this.values = values;
		}
		
		public BaseException(String key, Object value0) {
			this(key, new Object[]{value0});
		}
		
		public BaseException(String key, Object value0, Object value1) {
			this(key, new Object[]{value0, value1});
		}
		
		public BaseException(String key, Object value0, Object value1, Object value2) {
			this(key, new Object[]{value0, value1, value2});
		}
		
		public BaseException(String key, Object value0, Object value1, Object value2, Object value3) {
			this(key, new Object[]{value0, value1, value2, value3});
		}
		
		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public Object[] getValues() {
			return values;
		}

		public void setValues(Object[] values) {
			this.values = values;
		}
	
	
		public BaseException(Throwable cause) {
			super(cause);
		}
	
		public BaseException(String message, Throwable cause) {
			super(message, cause);
		}

}
